/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fiki.water.confi;

/*
 * Import 1) Interface
 *        2) 2 Class's
 *        3) The Bean
 *        4) Configuration
 */

import fiki.water.roman.myInterface;
import fiki.water.roman.firstClass;
import fiki.water.roman.secondClass;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class AppConfig {
    // can give the "Bean" any name you want to
    
    @Bean (name = "classOne")
            public myInterface getMyFirstClass(){
        return new firstClass();
    }
    
    
    @Bean (name = "classTwo")
            public myInterface getMySecondClass(){
        return new secondClass();
    }
}
